extends Sprite2D


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	var global_rect = global_transform*get_rect()
	var rect_shape = RectangleShape2D.new()
	rect_shape.size = global_rect.size
	$Node/StaticBody2D.position = global_rect.get_center()
	$Node/StaticBody2D/CollisionShape2D.shape=rect_shape
